Skip to content

CFE-90: Excluded the rootless container store from chown of jenkins home - #2421

Open
nickanderson wants to merge 2 commits into
cfengine:masterfrom
nickanderson:CFE-90/master-3
Open

CFE-90: Excluded the rootless container store from chown of jenkins home#2421
nickanderson wants to merge 2 commits into
cfengine:masterfrom
nickanderson:CFE-90/master-3

Conversation

@nickanderson

@nickanderson nickanderson commented Aug 11, 2026

Copy link
Copy Markdown
Member

The pre-build chown -R jenkins /home/jenkins walks the rootless container store, and chown(2) clears setuid bits even when the owner is unchanged, so /usr/bin/sudo inside stored image layers lost its setuid bit and every container build that reused an image failed. Container hosts now skip the store and only chown what is not already owned by jenkins.

Also reverts e19e324, which addressed the same failure on the wrong premise: the subuid range was already correct on the CI hosts.

chown(2) clears setuid bits even when the owner is unchanged, so the pre-build
chown -R stripped /usr/bin/sudo inside stored image layers and broke every
container build that reused an image.

Ticket: CFE-90
Changelog: none
This reverts commit e19e324. The range was
already correct on the CI hosts; setuid bits were lost to chown, not to the id
mapping.

Ticket: CFE-90
Changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants